package tech.wowo.service;

import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.wowo.mapper.CandidateMapper;
import tech.wowo.pojo.Candidate;

import java.util.List;

/**
 * @Author: ShanYuqing
 * @Version: v1.0
 */
@Service
@Log4j
public class CandidateServiceImpl implements CandidateService{

    @Autowired
    private CandidateMapper candidateMapper;

    @Override
    public List<Candidate> getCandidateList() {
        return candidateMapper.getCandidateList();
    }

    @Override
    public Integer addCandidate(Candidate candidate) {
        return candidateMapper.addCandicate(candidate);
    }
}
